package test.day03;

import java.util.Scanner;

public class test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int begin = sc.nextInt();
        int end = sc.nextInt();

        if (end >= begin) {
            for (int i = begin; i <= end; i++) {

                if (i % 7 == 0 || i / 10 == 7 || i % 10 == 7) {
                    System.out.println("pass");

                }else {
                    System.out.println(i);
                }
            }
        }else {
            System.out.println("error");
        }
    }
}
